/*
    SUSAN® - Sole of Unix Save ANything

   Copyright (C) 2008-2011 Hechzh Property

   

   

   
*/

#include "include/susan.h"
#include "lib/berrno.h"

void Lmgr_p(pthread_mutex_t* m)
{
  int errstat;
  if ((errstat = pthread_mutex_lock(m))) {
    BErrNo be;
    e_msg(__FILE__, __LINE__, M_ABORT, 0, _("Mutex lock failure. ERR=%s\n"),
          be.bstrerror(errstat));
  }
}

void Lmgr_v(pthread_mutex_t* m)
{
  int errstat;
  if ((errstat = pthread_mutex_unlock(m))) {
    BErrNo be;
    e_msg(__FILE__, __LINE__, M_ABORT, 0, _("Mutex unlock failure. ERR=%s\n"),
          be.bstrerror(errstat));
  }
}
